home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-09-12 | 2.2 KB | 99 lines |
- ############################################################################
- #
- # RLE Sample Application. Multimedia Systems Group
- #
- # (C) Copyright Microsoft Corp. 1991, 1992. All rights reserved.
- #
- # You have a royalty-free right to use, modify, reproduce and
- # distribute the Sample Files (and/or any modified version) in
- # any way you find useful, provided that you agree that
- # Microsoft has no warranty obligations or liability for any
- # Sample Application Files which are modified.
- #
- # If you did not get this from Microsoft Sources, then it may not be the
- # most current version. This sample code in particular will be updated
- # and include more documentation.
- #
- # Sources are:
- # The MM Sys BBS: The phone number is 206 936-4082.
- # CompuServe: WINSDK forum, MDK section.
- #
- ############################################################################
-
- !if "$(DEBUG)" == "NO"
- DEF=
- LOPT=
- COPT=
- MOPT=
- !else
- DEF=-DDEBUG
- LOPT=/CO
- COPT=-Zi
- MOPT=-Zi
- !endif
-
- CC = cl -c -W3 -AM -G2sw -Zp -Ows $(COPT) -nologo $(DEF) -I.
- MASM = masm -Mx -t -D?QUIET $(MOPT)
- LINK = link $(LOPT)/NOE/NOD/LI/MAP/NOPACKCODE/AL:16
- RC = rc $(DEF)
-
- NAME= rleapp
- EXENAME = rle
-
- OBJ1 = rleapp.obj rlefile.obj rle.obj rledlg.obj df.obj rlea.obj
- OBJ2 = dib.obj mem.obj
- OBJ3 =
- OBJ = $(OBJ1) $(OBJ2) $(OBJ3)
- LIBS = libw mlibcew commdlg mmsystem
-
- .c.obj:
- $(CC) $*.c
-
- .asm.obj:
- $(MASM) $*.asm;
-
- goal: $(EXENAME).exe
- # $(EXENAME).hlp
-
- $(EXENAME).hlp: help/*.rtf help/*.bmp help/*.hpj
- cd help
- hc $(EXENAME)
- copy $(EXENAME).hlp ..
- cd ..
-
- $(EXENAME).exe: $(OBJ) $(NAME).res $(NAME).def makefile
- $(LINK) @<<
- +
- $(OBJ1) +
- $(OBJ2) +
- $(OBJ3),
- $(EXENAME),
- $(EXENAME),
- $(LIBS),
- $(NAME).def
- <<
- # $(RC) -30 -t $(NAME).res $(EXENAME).exe
- $(RC) -t $(NAME).res $(EXENAME).exe
- cvpack -p $(EXENAME).exe
- mapsym /n $(EXENAME).map
-
- $(NAME).res: *.dlg $(NAME).rc rleapp.h rleapp.ico
- $(RC) -r $(NAME).rc
-
- rleapp.c: rleapp.h rle.h gmem.h dib.h
-
- rle.c: gmem.h rle.h dib.h
-
- dib.c: dib.h gmem.h
-
- rledlg.c: rleapp.h dib.h rle.h
-
- rlefile.c: rleapp.h rle.h gmem.h dib.h
-
- clean:
- del $(EXENAME).exe
- del *.res
- del *.obj
- del *.map
- del *.sym
-